package com.qd.pay.repository;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.cdqidi.db.BaseService;
import com.qd.pay.mapper.OrderWxMapper;
import com.qd.pay.model.OrderWx;
import org.springframework.stereotype.Repository;

/**
 * @author sjk
 */
@Repository
public class OrderWxRepository extends BaseService<OrderWxMapper, OrderWx> {

    public boolean isExists(String orderId) {
        return getBaseMapper().exists(new QueryWrapper<OrderWx>().eq("order_id", orderId));
    }
}